<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>

<div class="subscriptions index">
    <h2>
        <?php echo __('Price Plan'); ?>
        <?php echo $this->Html->link(__('Update Price'), array('controller' => 'subscriptions', 'action' => 'subscrideSetting', 'admin' => true), array('class' => 'btn  btn-primary btn-fl-r')) ?>
    </h2>

    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo __('Plan'); ?></th>
            <th><?php echo __('Price/Month'); ?></th>
        </tr>
        <?php
            foreach($terms as $term) {
                printf('<tr><td>%s</td><td>$%0.2f</td>', $term['SubscriptionTerm']['name'], $term['SubscriptionTerm']['price']);
            }
        ?>
    </table>
</div>